package com.hz.foodstalls.shiro.freemarker;

/**
 * Created by foodstalls on 2016/2/18.
 */
public class LacksRoleTag extends RoleTag {
    @Override
    protected boolean showTagBody(String roleNames) {
        boolean hasRole = getSubject() != null && getSubject().hasRole(roleNames);
        return !hasRole;
    }
}
